<template>
  <a-empty description="没东西啊，别瞎基霸点" />
  <div class="button-container">
    <a-button
        type="primary"
        @click="returnPrevious"
        class="custom-btn"
    >返回上一页</a-button>
    <a-button
        type="primary"
        @click="returnHome"
        class="custom-btn"
    >返回首页</a-button>
  </div>
</template>
<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const returnPrevious = () => {
  router.back();
};

const returnHome = () => {
  router.push('/');
};
</script>
<style scoped>
.button-container {
  display: flex;
  justify-content: center;
  gap: 16px; /* 按钮间距 */
  margin-top: 20px;
}

.custom-btn {
  width: 120px;
}
</style>
